from datetime import datetime

from langchain.prompts import PromptTemplate


def _get_datatime():
    now = datetime.now()
    return now.strftime("%m/%d/%Y, %H:%M:%S")


if __name__ == '__main__':
    template = "I am learning langchain because {reason}."
    prompt_template = PromptTemplate(template=template,
                                     input_variables=["reason", "foo"])  # ValueError due to extra variables
    print(prompt_template)


